home *** CD-ROM | disk | FTP | other *** search
/ Clickx 115 / Clickx 115.iso / software / tools / windows / tails-i386-0.16.iso / live / filesystem.squashfs / var / lib / dpkg / info / ekeyd.postinst < prev    next >
Encoding:
Text File  |  2011-08-10  |  672 b   |  25 lines

  1. #!/bin/sh -e
  2.  
  3. invoke-rc.d udev reload
  4.  
  5. # Those using dependency based boot sequencing with sysv-rc and installing
  6. # ekeyd-egd-linux before and including version 1.0.4-1 would have wrong
  7. # runlevel symlinks.  Recover from this.
  8. if [ "$1" = "configure" ] && dpkg --compare-versions "$2" le "1.0.4-1" \
  9.    && [ -f /etc/rcS.d/S[0-9][0-9]ekeyd ] ; then
  10.    update-rc.d -f ekeyd remove
  11. fi
  12.  
  13. # Automatically added by dh_installinit
  14. if [ -x "/etc/init.d/ekeyd" ]; then
  15.     update-rc.d ekeyd defaults >/dev/null
  16.     if [ -x "`which invoke-rc.d 2>/dev/null`" ]; then
  17.         invoke-rc.d ekeyd start || exit $?
  18.     else
  19.         /etc/init.d/ekeyd start || exit $?
  20.     fi
  21. fi
  22. # End automatically added section
  23.  
  24.  
  25.